<style>
    * {
        margin: 0;
        padding: 0;
    }
    h2,h3,h4{
        font-weight: normal;
        margin: 0;
    }
    li {
        list-style: none;
    }
    .content-box{
        margin:5px 20px;
        background: #f8f8f8;
        overflow: hidden;
    }
    .right-content{
        padding:20px 0px 70px 37%;
        border-left:4px solid #fff;;
    }
    h2{
        text-align: right;
        font-size:16px;
        padding-right:20px;
        line-height:36px;
    }
    h3{
        font-size:14px;

    }
    .main-right-list li,.second-content-list li,.product-belong-list li{
        padding:10px 0;
    }


    .classify-table tr td{
        border:1px solid #cbcbcb;
        padding:5px 0;
    }
    .classify-table tr td input[type=text]{
        width:80px;
        border-radius:2px;
        border:1px solid #cbcbcb;
    }
    .classify-table tr td input[type=button]{
        padding:1px 5px;
        color:#286e9f;
        background:#fff;
        border:1px solid #cbcbcb;
        margin-left:10px;
        border-radius:3px;
    }
    .main-right-list li span{
        display: inline-block;
        width: 100px;
    }
    .main-right-list li input[type=text]{
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border:1px solid #cccccc;
        width: 30%;
        height: 34px;
        padding-left: 12px;
    }
    .main-right-list li select{
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border:1px solid #cccccc;
        width: 24%;
        height: 34px;
        padding-left: 12px;
    }
    #picList img{
        width: 30%;
        margin-left: 10%;
        border-radius: 3px;
    }
</style>
<section class="content-header">
    <h1 style="display:inline-block;">教师管理</h1>&nbsp&nbsp<h4 style="display:inline-block;color: #707070">编辑教师</h4>
</section>
<section class="content">
    <div class="AC_content">
        <div class="main-infor content-box">
            <div class="content">
                <ul class="main-right-list">
                    <li>
                        <span>教师名称:</span>
                        <input type="text" data-id="<%=data.teacher_id%>" value="<%=data.teacher_name%>" class="teacher_name" id="teacher_name">
                    </li>
                    <li>
                        <span>教师头像:</span>
                        <form>
                            <div id="avatar" style="width:52%;height:150px;background-color: white;border: 1px solid #cbcbcb;margin-left: 100px">
                                <img src="<%=data.avatar%>" class="addimage" style="height: 150px;width: 100%;" id="upimgs" alt="">
                                <input type="button" value="+上传" id="btnid" onclick="start()">
                            </div>
                            <input style='display: none;' type="file" name="files[]" id='fileupload'>
                        </form>
                    </li>
                    <li><span>教师描述:</span></li>
                    <form>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <textarea name="desc" id="teacher_desc" data-value="<%=data.teacher_desc%>" style="width:700px;height:400px;" ><%=data.teacher_desc%></textarea>
                    </form>
                </ul>
            </div>
                </ul>
            </div>
        </div>
        <input type="hidden" name="teacher_id" id="teacher_id" value="<%=data.teacher_id%>"/>
        <input type="button" value="保&nbsp;&nbsp;存" class="publish btn btn-lg btn-primary" style="margin:50px 50% 0;">
    </div>
</section>
<script charset="utf-8" src="/plugins/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/plugins/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('textarea[name="desc"]', {
            uploadJson : '../../upload',
            allowFileManager : true
        });
    });


</script>
<script>
    function start(){
        $('#fileupload').click();
    }
    function touch() {
        $('#fileupload').click();
    }
</script>


